package cn.wolfcode.luowowo.acticle.mapper;

import cn.wolfcode.luowowo.acticle.domain.QuestionAndAnswer;
import cn.wolfcode.luowowo.acticle.query.QuestionAndAnswerQuery;

import java.util.List;

public interface QuestionAndAnswerMapper {
    int deleteByPrimaryKey(Long id);

    int insert(QuestionAndAnswer record);

    QuestionAndAnswer selectByPrimaryKey(Long id);

    List<QuestionAndAnswer> selectAll();

    int updateByPrimaryKey(QuestionAndAnswer record);

    List selectForList(QuestionAndAnswerQuery qo);

    void updateQuestionAndAnswerState(QuestionAndAnswer questionAndAnswer);
}